package com.gnehcnij.mall;

import com.gnehcnij.mall.service.OrderService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class UserServiceConsumerApplication {

    // docker run -it --rm --link myZookeeper:zookeeper zookeeper zkCli.sh -server zookeeper

    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext ioc = new ClassPathXmlApplicationContext("consumer.xml");
        OrderService orderService = ioc.getBean(OrderService.class);
        orderService.initOrder("1");
        System.out.println("Done");
        System.in.read(); // 按任意键退出
    }

}
